﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using SharedGenomics.Workbench.Core;
using SharedGenomics.Core;

namespace SharedGenomics.Workbench.Views.WindowsForms
{
    public partial class FileSetUploadView : View, IFileSetUploadView
    {
        public FileSetUploadView()
        {
            InitializeComponent();
        }

        private void btUpload_Clicked(object sender, EventArgs e)
        {
            this.UploadButtonClicked.Raise(this);
        }

        [Region("OpenGenotypeFile")]
        public Control OpenGenotypeRegion
        {
            get { return this.plGenotypes; }
        }

        [Region("OpenPhenotypeFile")]
        public Control OpenPhenotypeRegion
        {
            get { return this.plPhenotypeFile; }
        }

        public string DataSetName
        {
            get { return this.txtDataSetName.Text; }
        }

        public string ServiceMessage
        {
            set { this.txtServiceMessage.Text = value ?? String.Empty; }
        }

        public bool IsUploadEnabled
        {
            set { this.btUpload.Enabled = value; }
        }

        public event EventHandler UploadButtonClicked;
    }
}
